import request from '@/utils/request.js'

// sms登录
export function smsLogin(data) {
	return request({
		url: '/app/mini/smsLogin',
		data: data,
		method: "POST",
	})
}
// 获取用户信息
export function miniUserInfo(data) {
	return request({
		url: '/app/mini/userInfo',
		data: data,
		method: "GET",
	})
}

// 添加子女
export function addApply(data) {
	return request({
		url: '/app/user/addApply',
		data: data,
		method: "post",
	})
}

// 注册
export function register(data) {
	return request({
		url: '/app/mini/register',
		data: data,
		method: "post",
	})
}

// 录入记录
export function applyList(data) {
	return request({
		url: '/app/user/applyList',
		data: data,
		method: "GET",
	})
}
// 修改用户信息接口
export function updateUserInfo(data) {
	return request({
		url: '/app/mini/updateUserInfo',
		data: data,
		method: "post",
	})
}

// 修改用户信息接口
export function familyList(data) {
	return request({
		url: '/app/home/familyList',
		data: data,
		method: "get",
	})
}

// 获取openID
export function getOpenId(data) {
	return request({
		url: '/app/mini/getOpenId',
		data: data,
		method: "get",
	})
}

// 获取openID
export function authUrl(data) {
	return request({
		url: '/app/mini/authUrl',
		data: data,
		method: "get",
	})
}

// 获取认亲查询
export function familyRecognizeRelatives(data) {
	return request({
		url: '/app/home/familyRecognizeRelatives',
		data: data,
		method: "get",
	})
}


// 捐赠